

import java.util.Scanner;

//https://www.nowcoder.com/practice/52d382c2a7164767bca2064c1c9d5361?tpId=37&tqId=21310&ru=/exam/oj
public class Main2 {
    /**
     * score 分数
     * upCount 大写字母数目
     * lowCount 小写字母数目
     * numCount 数字数目
     * sigCount 符号数目
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        while (in.hasNextLine()) {
            char[] ch = in.nextLine().toCharArray();
            int score = 0;

            //统计长度
            int len = ch.length;
            if (len <= 4) score += 5;
            else if (len < 8) score += 10;
            else score += 25;

            //遍历获取大小写字母、数字、符号数目
            int upCount = 0;
            int lowCount = 0;
            int numCount = 0;
            int sigCount = 0;

            for (char c : ch) {
                if (Character.isUpperCase(c)) ++upCount;
                else if (Character.isLowerCase(c)) ++lowCount;
                else if (Character.isDigit(c)) ++numCount;
                else ++sigCount;
            }

            //字母分数
            if ((upCount > 0 && lowCount == 0) || (upCount == 0 && lowCount > 0)) score += 10;
            else if (upCount > 0 && lowCount > 0) score += 20;

            //数字分数
            if (numCount == 1) score += 10;
            else if (numCount > 1) score += 20;

            //符号分数
            if (sigCount == 1) score += 10;
            else if (sigCount > 1) score += 25;

            //奖励分数
            if (numCount > 0 && upCount > 0 && lowCount > 0 && sigCount > 0) score += 5;
            else if (numCount > 0 && sigCount > 0 && (upCount > 0 || lowCount > 0)) score += 3;
            else if (numCount > 0 && (upCount > 0 || lowCount > 0)) score += 2;

            //评分
            if (score >= 90) System.out.println("VERY_SECURE");
            else if (score >= 80) System.out.println("SECURE");
            else if (score >= 70) System.out.println("VERY_STRONG");
            else if (score >= 60) System.out.println("STRONG");
            else if (score >= 50) System.out.println("AVERAGE");
            else if (score >= 25) System.out.println("WEAK");
            else System.out.println("VERY_WEAK");


        }
    }
}

